package http;

import cn.hutool.http.HttpUtil;
import com.sun.deploy.net.HttpUtils;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;

import java.io.IOException;

public class HttpTest {
    public static void main(String[] args) throws IOException {
        String url = "https://greatgas-hqw2-sale-base.ennec-prod.enncloud.cn/contract/select?compCode=0571&orgLevel=4";
        CloseableHttpClient httpClient = HttpClients.createDefault();
        HttpGet httpGet = new HttpGet(url);
        CloseableHttpResponse response = httpClient.execute(httpGet);

        response.close();
        httpClient.close();

    }
}
